package com.fanqiechaodan.mediator;

/**
 * @author fanqiechaodan
 * @Classname ConcreateColleague1
 * @Description 具体同事类1
 */
public class ConcreteColleague1 extends Colleague {


    public ConcreteColleague1(Mediator mediator) {
        super(mediator);
    }

    /**
     * 发送消息
     *
     * @param message
     */
    @Override
    public void send(String message) {
        mediator.send(message, this);
    }

    /**
     * 消费消息
     *
     * @param message
     */
    @Override
    public void receive(String message) {
        System.out.println("concreteColleague1收到消息:" + message);
    }
}
